/** @jsxImportSource @emotion/react */
import * as React from "react";
import { ReportViewProps, } from "../../common/base";
import {末尾链接, } from "../../common/rarelyVary";
import {CertificatePage} from "./viewCert";

/*只有一个证书吗 ？ 就没有常规的报告或记录的； 【看来】不需要 ，光光一个证书的。
* */
export const ReportView: React.FunctionComponent<ReportViewProps> = ({
    repId,   source: orc,  verId,rep,
}) => {
    // const theme= useTheme();
  return (
    <React.Fragment>
        <div css={{"@media not print": {marginTop: '1rem', marginBottom: '1rem'}}}>
           <CertificatePage orc={orc} rep={rep}/>
        </div>
        {末尾链接({template: rep?.modeltype, verId, repId: repId || ''})}
    </React.Fragment>
  );
}
